.class Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;
.super Landroid/content/BroadcastReceiver;
.source "AppVideoActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/AppVideoActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "AppInstallReceiver"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;


# direct methods
.method private constructor <init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 2

    .prologue
    .line 856
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;->this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/brixd/niceapp/activity/AppVideoActivity;Lcom/brixd/niceapp/activity/AppVideoActivity$1;)V
    .registers 3
    .param p1, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p2, "x1"    # Lcom/brixd/niceapp/activity/AppVideoActivity$1;

    .prologue
    .line 856
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 7
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "intent"    # Landroid/content/Intent;

    .prologue
    .line 859
    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v2}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object v1

    .line 860
    .local v1, "packageName":Ljava/lang/String;
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    .line 861
    .local v0, "action":Ljava/lang/String;
    const-string v2, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_26

    .line 862
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;->this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;->this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/AppVideoActivity;->access$1100(Lcom/brixd/niceapp/activity/AppVideoActivity;)Lcom/brixd/niceapp/model/VideoAppModel;

    move-result-object v3

    iget-object v3, v3, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    # setter for: Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/AppVideoActivity;->access$1302(Lcom/brixd/niceapp/activity/AppVideoActivity;Z)Z

    .line 866
    :cond_25
    :goto_25
    return-void

    .line 863
    :cond_26
    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_25

    .line 864
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;->this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;->this$0:Lcom/brixd/niceapp/activity/AppVideoActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->access$1100(Lcom/brixd/niceapp/activity/AppVideoActivity;)Lcom/brixd/niceapp/model/VideoAppModel;

    move-result-object v2

    iget-object v2, v2, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_43

    const/4 v2, 0x1

    :goto_3f
    # setter for: Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z
    invoke-static {v3, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->access$1302(Lcom/brixd/niceapp/activity/AppVideoActivity;Z)Z

    goto :goto_25

    :cond_43
    const/4 v2, 0x0

    goto :goto_3f
.end method
